import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';

@Injectable()
export class TreetableService {
  constructor(private http: HttpClient) {}

  getUsers() {
    return this.http.get('assets/mockdata/treetable.json', { params: { $prefix: 'none' } });
  }

  getTreeUsers() {
    return this.http.get('assets/mockdata/treetable2.json', { params: { $prefix: 'none' } });
  }

  getUsers2() {
    return this.http.get('assets/mockdata/treetable3.json', { params: { $prefix: 'none' } });
  }
}
